package com.example.userserver.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.plugins.Page;
import com.example.commons.entity.CertificateProfileDO;
import com.example.commons.entity.ExaminationAnswerSheetDO;
import com.example.commons.entity.ExpertsDO;
import com.example.userserver.dao.ExpertsDao;
import com.example.userserver.service.ExpertsService;
import org.springframework.stereotype.Service;

import java.util.Map;


/**
 * 
 * <pre>
 * 专家表
 * </pre>
 * <small> 2020-02-24 21:00:11 | lance</small>
 */
@Service
public class ExpertsServiceImpl extends ServiceImpl<ExpertsDao, ExpertsDO> implements ExpertsService {



    @Override
    public Page<Map> listPage(int current, int number, QueryWrapper<ExpertsDO> wrapper) {
        // 新建分页
        Page<Map> page = new Page<Map>(current, number);

        return page.setRecords(this.baseMapper.list(page));
    }
//
//    @Override
//    public Page<ExpertsDO> findList(int current, int number) {
//        Page<ExaminationAnswerSheetDO> page = new Page<ExaminationAnswerSheetDO>(current, number);
//        QueryWrapper<ExpertsDO> wrapper=new QueryWrapper<>();
//        return page.setRecords(this.baseMapper.selectPage(page,wrapper));
//
//    }
}
